﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleTest_1
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime currenTime = new DateTime();
            currenTime = DateTime.Now;

            Console.WriteLine("begin.....");
            TestUtils testUtilObj = new TestUtils();
            Test testObj = new Test();
            testUtilObj.DeleGetTimeEnd = new TestUtils.GetStrTimeEnd(testObj.printStr);
            testUtilObj.EventGetTime += new TestUtils.GetStrTimeEnd(testObj.printLog);

            //Console.WriteLine(testObj.IntToStr(999));
            Console.WriteLine(testUtilObj.GetCurrentTimeStr());

            Console.WriteLine(testUtilObj.GetTimeStamp(DateTime.Now));
            Console.WriteLine(DateTime.Now.ToFileTime());

            List<Test> listTemp = new List<Test>();
            listTemp.Add(new Test() { m_nUin = 1});
            listTemp.Add(new Test() { m_nUin = 9 });
            listTemp.Add(new Test());
            listTemp.Add(new Test() { m_nUin = 5 });
            listTemp.Add(new Test() { m_nUin = 4 });
            listTemp.Sort();
            Console.WriteLine(testUtilObj.GetTestListStr(listTemp));

            listTemp.Sort((x,y)=>-x.CompareTo(y));
            Console.WriteLine(testUtilObj.GetTestListStr(listTemp));

            Console.ReadLine();
            Console.WriteLine("end.....");
        }
    }
}
